<script>

var n1 = "-1212"; //parseInt(n1) --> -1212
var n2 = "0"; //parseInt(n1) --> 0
var n3 = "23"; //parseInt(n1) --> 23
var n4 = "2e3"; // floating number  //parseInt(n1) --> 2000
var n5 = "2123.233";// floating number //parseInt(n1) --> 2123.233
var n6 = "123 23";//parseInt(n1) --> NaN
var n7 = "sjdhg";//parseInt(n1) --> NaN
var n8 = "true";//parseInt(n1) --> NaN


var strOutput = "<p>" +parseInt(n1) + " " +parseInt(n2) + " " +parseInt(n3) + " " +parseInt(n4) + " " +parseInt(n5) + " " +parseInt(n6) + " " +parseInt(n7) + " " +parseInt(n8) + " " + "</p>";
document.writeln(strOutput);

</script>
